{% extends "administrator/base.html" %}

{% block mainbody %}

<h1>
    会员信息浏览
</h1>
<table class="table table-bordered table-striped">
    <thead>
        <tr>
            <th>
                id
            </th>
            <th>
                用户名
            </th>
            <th>
                姓名
            </th>
            <th>
                性别
            </th>
            <th>
                地址
            </th>
            <th>
                email
            </th>
            <th>
                电话
            </th>
            <th>
                权限
            </th>
            <th>
                VIP等级
            </th>
            <th>
                注册时间
            </th>

            <th>操作</th>
        </tr>
    </thead>
    <tbody>
        {% for vo in userslist %}
        <tr>
            <td>{{ vo.id }}</td>
            <td>{{ vo.username }}</td>
            <td>{{ vo.name }}</td>
            <td>{% if vo.sex == 1 %}男{% else %}女{% endif %}</td>
            <td>{{ vo.address }}</td>
            <td>{{ vo.email }}</td>
            <td>{{ vo.phone }}</td>
            <td>{{ vo.identity }}</td>
            <td>{{ vo.viplevel }}</td>
            <td>{{ vo.registertime }}</td>
            <td>
                <a href="{% url 'admin_users_edit' vo.id %}" class="view-link">编辑</a>
                <a href="{% url 'admin_users_del' vo.id %}" class="view-link">删除</a>
                <a href="{% url 'admin_users_passwd' vo.id %}" class="view-link">修改密码</a>
            </td>
        </tr>
        {% endfor %}
    </tbody>
</table>                
<div class="pagination">
    <ul>
        <li class="disabled">
            <a href="#">&laquo;</a>
        </li>
        <li class="active">
            <a href="#">1</a>
        </li>
        <li>
            <a href="#">2</a>
        </li>
        <li>
            <a href="#">3</a>
        </li>
        <li>
            <a href="#">4</a>
        </li>
        <li>
            <a href="#">&raquo;</a>
        </li>
    </ul>
</div>

{% endblock %}
